#ifndef ORDER_PROCESS_DATABASE_H
#define ORDER_PROCESS_DATABASE_H

#include <QObject>

#include "sqlitepool.h"

class Order_Process_Database : public QObject
{
    Q_OBJECT
public:

    static Order_Process_Database* getInstance(QObject* parent);
    static Order_Process_Database* m_Instance;
    static QMutex m_mutex;

    bool ConnectToDataBase(QSqlDatabase* Db);

    bool execSql(const QString& sql);

    QSqlQuery* execSql_Result(const QString& sql);

    SQLitePool* m_SqlPool = nullptr;

private:
    Order_Process_Database(QObject *parent = nullptr);
    ~Order_Process_Database();
    Order_Process_Database(const Order_Process_Database&)=delete;
    Order_Process_Database& operator=(const Order_Process_Database)=delete;


signals:
};

#endif // ORDER_PROCESS_DATABASE_H
